package com.mock.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Directorate implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5108011183267601589L;
	private Long directorateId;
	private String directorateName;
	private String directorateShortDescription;
	private String addressName1;
	private String addressName2;
	private String addressName3;
	private String postcode;
	private String town;
	private String county;
	private String directorateFullDescription;
	private String phoneNumber;
	private String fax;
	private String email;
	private String webAddress;
	private String charityNumber;
	private String companyNumber;
	
	private BusinessType businessType;
	private Contact contact;
	private Organisation organisation;
	private Country country;
	private boolean isActive;
	
	@Id
	@GeneratedValue
	public Long getDirectorateId() {
		return directorateId;
	}
	public void setDirectorateId(Long directorateId) {
		this.directorateId = directorateId;
	}
	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name="contactId")
	public Contact getContact() {
		return contact;
	}
	public void setContact(Contact contact) {
		this.contact = contact;
	}
	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name="organisationId")
	public Organisation getOrganisation() {
		return organisation;
	}
	public void setOrganisation(Organisation organisation) {
		this.organisation = organisation;
	}
	public boolean isActive() {
		return isActive;
	}
	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}
	public String getDirectorateName() {
		return directorateName;
	}
	public void setDirectorateName(String directorateName) {
		this.directorateName = directorateName;
	}
	public String getAddressName1() {
		return addressName1;
	}
	public void setAddressName1(String addressName1) {
		this.addressName1 = addressName1;
	}
	public String getAddressName2() {
		return addressName2;
	}
	public void setAddressName2(String addressName2) {
		this.addressName2 = addressName2;
	}
	public String getAddressName3() {
		return addressName3;
	}
	public void setAddressName3(String addressName3) {
		this.addressName3 = addressName3;
	}
	public String getPostcode() {
		return postcode;
	}
	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}
	public String getTown() {
		return town;
	}
	public void setTown(String town) {
		this.town = town;
	}
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public String getDirectorateFullDescription() {
		return directorateFullDescription;
	}
	public void setDirectorateFullDescription(String directorateFullDescription) {
		this.directorateFullDescription = directorateFullDescription;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getFax() {
		return fax;
	}
	public void setFax(String fax) {
		this.fax = fax;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getWebAddress() {
		return webAddress;
	}
	public void setWebAddress(String webAddress) {
		this.webAddress = webAddress;
	}
	public String getCharityNumber() {
		return charityNumber;
	}
	public void setCharityNumber(String charityNumber) {
		this.charityNumber = charityNumber;
	}
	public String getCompanyNumber() {
		return companyNumber;
	}
	public void setCompanyNumber(String companyNumber) {
		this.companyNumber = companyNumber;
	}
	@ManyToOne()
	@JoinColumn(name="businessId")
	public BusinessType getBusinessType() {
		return businessType;
	}
	public void setBusinessType(BusinessType businessType) {
		this.businessType = businessType;
	}
	@ManyToOne()
	@JoinColumn(name="countryId")
	public Country getCountry() {
		return country;
	}
	public void setCountry(Country country) {
		this.country = country;
	}
	public String getDirectorateShortDescription() {
		return directorateShortDescription;
	}
	public void setDirectorateShortDescription(
			String directorateShortDescription) {
		this.directorateShortDescription = directorateShortDescription;
	}
	
	
}
